#include <iostream>
#include <numeric>
using namespace std;

typedef long long LL;

int main() {

    LL a, b;
    cin >> a >> b;

    // LL ans = gcd(a, b);
    LL NumMax = max(a, b);

    LL ans = 0;
    for (LL i = NumMax; i <= (a * b); i += NumMax)
        if (i % a == 0 && i % b == 0)
        {
            ans = i;
            break;
        }

    cout << ans << endl;
    return 0;

}
